﻿''Module de connection à la base de données
'Module ModConnect
'    Public MaConnexion As New MySql.Data.MySqlClient.MySqlConnection
'    Public MaCommandeSpecialRequete As New MySql.Data.MySqlClient.MySqlCommand
'    Public MonRemplisseur As New MySql.Data.MySqlClient.MySqlDataAdapter
'    Public MonJeuDeDonnees As New Data.DataSet
'    Public MaRequete As String
'    Public nom As String
'    Public mdp As String
'    Public machaine As String
'    Public estConnecte As Boolean
'    'Public machaine As String = "Data Source=localhost;database=depannage;User Id=root;Password="
'    'Méthode SeConnecter qui permet de se connecter à la base
'    Public Sub SeConnecter()
'        Try
'            machaine = "Data Source=hostingmysql114.amen.fr;database=853339_depannage;User Id=853339_depanneur;Password=071064"
'            'machaine = "Data Source=localhost;database=853339_depannage;User Id=root;Password="
'            MaConnexion.ConnectionString = machaine
'            MaConnexion.Open()
'            MonJeuDeDonnees.Clear()
'            MaCommandeSpecialRequete.CommandType = CommandType.Text
'            MaCommandeSpecialRequete.Connection = MaConnexion
'            estConnecte = True
'        Catch ex As Exception

'        End Try

'    End Sub
'    Public Sub SeDeconnecter()
'        'Fermetures
'        MaConnexion.Close()
'        MaConnexion = Nothing
'        estConnecte = False

'    End Sub
'End Module
